package com.sdry;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.server.ConfigurableWebServerFactory;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;

/**
 * 程序入库
 * @author admin
 * @date 2019-11-19 16:46:55
 * @version 1.0
 */
@SpringBootApplication
@MapperScan("com.sdry.**.mapper")
public class InfoSdryApplication  extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(InfoSdryApplication.class, args);
    }

//    @Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
//        return application.sources(InfoSdryApplication.class);
//    }
}
